<div id="sidebar">   

<ul>

<?php if ( !function_exists('dynamic_sidebar')
        || !dynamic_sidebar(2) ) : ?>

<li><h2>Search</h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</li>

        <li><h2>Archives</h2>
	<ul>
	<?php wp_get_archives('type=monthly'); ?>
	</ul>
        </li>

	<li><h2>Categories</h2>
	<ul>
	<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
	</ul>
        </li>

<?php endif; ?>

     <?php
          $access=get_settings("blog_access");
          if(!$access) $access=0;
           $access++;
           update_option("blog_access",$access);
              echo "<li><h2>ACCESS: $access </h2></li>\n";
     ?>


</ul>

</div>



	
